package cn.ecut.service.impl;


import cn.ecut.dao.GuanliyuanDao;
import cn.ecut.model.Guanliyuan;
import cn.ecut.model.Student;
import cn.ecut.service.GuanliyuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GuanliyuanServiceimpl implements GuanliyuanService {
    @Autowired
    private GuanliyuanDao guanliyuanDao;

    @Override
    public String selectPasswordByname(String name) {
        return guanliyuanDao.selectPasswordByname(name);
    }

    @Override
    public int updatePasswordByname(Guanliyuan guanliyuan) {
        return guanliyuanDao.updatePasswordByname(guanliyuan);
    }

    @Override
    public int addGuanliyuan(Guanliyuan guanliyuan) {
        return guanliyuanDao.addGuanliyuan(guanliyuan);
    }

    @Override
    public int slectCountByphone(String phone) {
        return guanliyuanDao.slectCountByphone(phone);
    }

    @Override
    public int selectCountBynumber(String number) {
        return guanliyuanDao.selectCountBynumber(number);
    }

    @Override
    public int addStudent(Student student) {
        return guanliyuanDao.addStudent(student);
    }

    @Override
    public List<Student> selectAllStudent() {
        return guanliyuanDao.selectAllStudent();
    }

    @Override
    public int selectStudentAllcount() {
        return guanliyuanDao.selectStudentAllcount();
    }

    @Override
    public List<Student> selectStudentByPage(int offset, int num) {
        return guanliyuanDao.selectStudentByPage(offset, num);
    }

    @Override
    public int updataStudent(Student student) {
        return guanliyuanDao.updataStudent(student);
    }

    @Override
    public int deleteStudentBynumber(String number) {
        return guanliyuanDao.deleteStudentBynumber(number);
    }

    @Override
    public List<Student> advanceSelect(String s,int offset,int num) {
        return guanliyuanDao.advanceSelect(s,offset,num);
    }

    @Override
    public int advanceSelectCount(String s) {
        return guanliyuanDao.advanceSelectCount(s);
    }
}
